package jerry.html.events;

import java.util.List;

/**
 * 
 * 
 * Game ended event
 * 
 * 
 * @author (h0t@_G0|i
 * 
 */

public class GameEndEvtCapImpl extends EvtCap {

	public GameEndEvtCapImpl(List<String> list) {
		if (list.size() < 3) {
			validEvt = false;
			return;
		}
		validEvt = true;
		timeStamp = Double.valueOf(list.get(0)).doubleValue();
		reason = list.get(2);
		if (list.size() >= 4)
			endedBy = list.get(3);
	}

	public String reason;
	public String endedBy = "";
}
